package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 分享DTO
 */
@Data
@Schema(description = "分享信息")
public class ShareDTO {
    
    @Schema(description = "分享ID", example = "1")
    private Long id;
    
    @Schema(description = "分享笔记ID", example = "1")
    private Long noteId;
    
    @Schema(description = "笔记标题", example = "Spring Boot学习笔记")
    private String noteTitle;
    
    @Schema(description = "分享用户ID", example = "1")
    private Long userId;
    
    @Schema(description = "分享用户名称", example = "张三")
    private String userName;
    
    @Schema(description = "分享链接", example = "https://example.com/share/abc123def456")
    private String shareLink;
    
    @Schema(description = "分享令牌", example = "abc123def456")
    private String token;
    
    @Schema(description = "权限类型 READ-只读 WRITE-可编辑", example = "READ")
    private String permission;
    
    @Schema(description = "过期时间", example = "2023-12-31T23:59:59")
    private LocalDateTime expiredAt;
    
    @Schema(description = "创建时间", example = "2023-10-01T12:00:00")
    private LocalDateTime createdAt;
} 